.more-options-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 24rpx 24rpx 0 0;
  padding: 20rpx;

  .options-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 20rpx;

    .option-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.3s, opacity 0.3s; // 添加过渡效果

      .option-text {
        margin-top: 10rpx; // 图标与文字的间距
        font-size: 28rpx;
        color: #333;
      }
    }
  }

  .cancel-btn {
    width: 100%;
    padding: 20rpx 0;
    background-color: #fff; // 白色背景
    border-top: 1rpx solid #e4e7ed; // 分割线
    font-size: 32rpx;
    color: #999;
    text-align: center;
    cursor: pointer;

    &:hover {
      color: #666; // 鼠标悬停时的颜色变化
    }
  }
}

.line::before {
  content: '';
  position: absolute;
  left: -40rpx;
  top: 0;
  bottom: 0;
  width: 6rpx;
  background-color: #dce3eb;
}

.lines::before {
  content: '';
  position: absolute;
  left: -40rpx;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed #dee3e9;
}

.plupload-preview {
  margin-top: 10rpx;

  .image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10rpx;
    padding: 4rpx;

    .image-item {
      position: relative;
      width: calc(25% - 12rpx); // 每行显示4张图片
      height: 0;
      border-radius: 8rpx;
      overflow: hidden;
      background-color: #f9f9f9;
      cursor: pointer;

      .preview-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .image-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40rpx;
      }
    }
  }

  .file-list {
    display: flex;
    flex-direction: column;
    gap: 16rpx;

    .file-item {
      display: flex;
      align-items: center;
      padding: 16rpx;
      background-color: #f9f9f9;
      border-radius: 8rpx;
      cursor: pointer;
      transition: background-color 0.3s;

      &:hover {
        background-color: #eef6ff; // 鼠标悬停时的背景色
      }

      .file-icon {
        margin-right: 16rpx;
      }

      .file-info {
        flex: 1;

        .file-name {
          font-size: 28rpx;
          color: #333;
          word-break: break-all;
        }

        .file-size {
          font-size: 24rpx;
          color: #999;
          margin-top: 4rpx;
        }
      }
    }
  }
}

.comment-content {
  background: #f3f4f6;
  border-radius: 5px;
  padding: 5px;
  font-size: 14px;
  word-break: break-word; // 自动换行
  white-space: normal; // 允许换行
  //max-width: 90%; // 最大宽度为父容器的90%
  min-height: auto; // 高度自适应
  line-height: 1.5; // 行高优化可读性
}

.popup-header {
  position: relative;
  padding: 32rpx;
  text-align: center;
  border-bottom: 1rpx solid #f5f5f5;

  .header-title {
    font-size: 32rpx;
    font-weight: 600;
    color: #333;
  }

  .header-close {
    position: absolute;
    right: 24rpx;
    top: 50%;
    transform: translateY(-50%);
    padding: 16rpx;
  }
}

.user-count {
  padding: 24rpx 32rpx;
  font-size: 26rpx;
  color: #999;
  background-color: #fafafa;
}

.popup-content {
  overflow-y: auto;
  height: 70vh;
  flex: 1;
  //padding: 0 32rpx;
}

.user-list {
  padding: 0 32rpx;
  padding-bottom: 32rpx;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 24rpx 0;
  border-bottom: 1rpx solid #f5f5f5;

  &:last-child {
    border-bottom: none;
  }
}

.user-avatar {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  background-color: #3c9cff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 24rpx;

  image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .avatar-text {
    color: #fff;
    font-size: 32rpx;
    font-weight: bold;
  }
}

.user-name {
  flex: 1;
  font-size: 28rpx;
  color: #333;
}

.user-action {
  width: 60rpx;
  text-align: right;
  padding: 8rpx;
}

.process-right {
  display: flex;
  align-items: center;

  .user {
    margin-right: 16rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .more-users {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16rpx;
    cursor: pointer;

    .more-avatar {
      width: 62rpx;
      height: 62rpx;
      background-color: #f3f3f3;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;

      .more-text {
        color: #666;
        font-size: 24rpx;
        font-weight: 500;
      }
    }

    .more-name {
      font-size: 24rpx;
      color: #666;
      margin-top: 8rpx;
    }

    &:active {
      opacity: 0.8;
    }

    color: #333; // 字体颜色
  }
}

.title-view {
  position: relative;
  padding-left: 35rpx;
  padding-bottom: 10rpx;
  background-color: white;

  .text-title {
    font-weight: 700;
    padding-bottom: 10rpx;
  }

  .text-remark {
    color: #999;
    font-size: 26rpx;
    padding-bottom: 10rpx;
  }

  .text-current {
    color: #55aaff;
    font-size: 26rpx;
    padding-bottom: 10rpx;
  }
}

.main-view {
  //border-radius: 12rpx;
  //width: 88%;
  //margin: 0 auto;
  margin-top: 10rpx;
  padding-left: 35rpx;
  padding-bottom: 50rpx;
  background-color: white;
  padding-right: 35rpx;

  .main-title {
    padding: 20rpx 0rpx 10rpx 0rpx;
    color: #999;
    font-size: 26rpx;
  }

  .main-content {
    padding-bottom: 5rpx;
    font-size: 30rpx;
    word-break: break-all; // 允许单词内断行
    white-space: normal; // 允许多行显示
    overflow: hidden; // 防止内容溢出容器
  }
}

image {
  width: 80px;
  height: 70px;
}

.image {
  position: absolute;
  right: 10px;
  top: 110rpx;
  width: 80px;
}

table {
  border-collapse: collapse;
  table-layout: fixed;
  width: auto;
  z-index: 1;
  position: relative;
}

td {
  text-align: left;
  padding: 8px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  color: black;
  font-size: 26rpx;
}

th {
  text-align: left;
  background-color: #e3e4e6;
  padding: 8px;
  color: black;
  font-size: 26rpx;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

/* 流程容器 */
.process-container {
  //width: 89%;
  //margin: 0 auto;
  margin-top: 10px;
  padding: 20rpx 30rpx;
  background-color: #fff;
  //border-radius: 12rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
  margin-bottom: 30rpx;
}

.process-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  padding-bottom: 20rpx;
  border-bottom: 1rpx solid #f5f5f5;
}

/* 时间线样式 */
.timeline {
  position: relative;
  padding-left: 80rpx;
}

.timeline-item {
  position: relative;
  padding-bottom: 30rpx;
  display: flex;
  padding-left: 15rpx;
}

.timeline-node {
  position: absolute;
  left: -80rpx;
  top: 0;
  width: 80rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node-icon,
.cc-icon {
  position: relative; // 确保 z-index 生效
  z-index: 2; // 设置较高的层级
}

.node-icon {
  width: 40px;
  height: 40px;
  border-radius: 8rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #409eff;
  color: #fff;

  &.read::after {
    content: '';
    position: absolute;
    top: -4rpx;
    right: -4rpx;
    width: 16rpx;
    height: 16rpx;
    background-color: #67c23a;
    border-radius: 50%;
    border: 2rpx solid #fff;
  }
}

.cc-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0052f700;
  border-radius: 0.25rem;
}

.avatar-text {
  font-size: 14px;
}

.timeline-connector {
  flex: 1;
  width: 2rpx;
  background-color: #e4e7ed;
  margin: 10rpx 0;
}

/* 流程内容 */
.process-content {
  //z-index: 99;
  flex: 1;
}

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8rpx;
}

.process-title-text {
  font-size: 28rpx;
  font-weight: 500;
  color: #333;
}

.process-time {
  font-size: 24rpx;
  color: #999;
}

.process-user {
  font-size: 26rpx;
  color: #666;
  margin-bottom: 16rpx;
}

.process-type {
  margin-left: 10rpx;
  color: #409eff;
}

.process-comment {
  display: flex;
  flex-direction: column; // 垂直排列子元素
  padding: 16rpx;
  background-color: #f5f7fa;
  border-radius: 8rpx;
  //margin-bottom: 16rpx;

  .comment-content {
    flex: 1;
    word-break: break-word;
    white-space: normal;
    font-size: 26rpx;
    color: #333;
    //margin-bottom: 16rpx; // 确保文字与附件之间有间距
  }

  .withdraw {
    position: absolute;
    right: 20rpx;
    top: 50%;
    margin-left: 20rpx;
    padding: 8rpx 16rpx;
    background-color: #ff4d4f;
    color: #fff;
    font-size: 24rpx;
    border-radius: 4rpx;
    cursor: pointer;
    align-self: flex-start; // 让撤回按钮靠左对齐
    margin-bottom: 16rpx; // 按钮与附件之间留出间距
  }

  .process-attachments {
    display: flex;
    flex-direction: column; // 垂直排列附件

    .attachment-images,
    .attachment-files {
      margin-top: 10rpx; // 附件与上方内容保持间距
    }

    .image-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 10rpx;

      .image-item {
        position: relative;
        width: 180rpx;
        height: 100rpx;
        border-radius: 8rpx;

        .image-preview {
          width: 100%;
          height: 100%;
          object-fit: cover;
          /* 图片填充方式 */
          transition: transform 0.3s ease;
        }

        .image-alt {
          width: 80%;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          font-size: 24rpx;
          color: #999;
          text-align: center;
          padding: 8rpx;
          background-color: rgba(255, 255, 255, 0.8);
          /* 半透明背景 */
          border-radius: 4rpx;
        }
      }
    }

    .attachment-files {
      display: flex;
      flex-direction: column;
      gap: 12rpx;

      .file-preview {
        display: flex;
        align-items: center;
        //padding: 12rpx 16rpx;
        background-color: #f5f7fa;
        border-radius: 8rpx;

        .file-icon {
          margin-right: 12rpx;
          font-size: 32rpx;
        }

        .file-name {
          font-size: 26rpx;
          color: #333;
          flex: 1;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
  }
}

/* 附件样式 */
.process-attachments {
  margin-top: 16rpx;
}

.attachment-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16rpx;
  //margin-bottom: 16rpx;

  .image-grid {
    display: flex;
    flex-wrap: wrap;

    .image-item {
      position: relative;
      width: 180rpx;
      height: 100rpx;
      border-radius: 8rpx;

      .image-preview {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* 图片填充方式 */
        transition: transform 0.3s ease;
      }

      .image-alt {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24rpx;
        color: #999;
        text-align: center;
        padding: 8rpx;
        background-color: rgba(255, 255, 255, 0.8);
        /* 半透明背景 */
        border-radius: 4rpx;
      }
    }
  }
}

.attachment-files {
  display: flex;
  flex-direction: column;
  gap: 12rpx;
}

.file-preview {
  display: flex;
  align-items: center;
  //padding: 12rpx 16rpx;
  background-color: #f5f7fa;
  border-radius: 8rpx;

  .file-name {
    font-size: 26rpx;
    color: #333;
    margin-left: 12rpx;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 抄送人员样式 */
.cc-users {
  margin-top: 16rpx;
}

.cc-users-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20rpx;
}

.cc-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80rpx;
}

.cc-user-avatar {
  position: relative;
  margin-bottom: 8rpx;
}

.read-badge {
  position: absolute;
  top: -4rpx;
  right: -4rpx;
  width: 16rpx;
  height: 16rpx;
  background-color: #67c23a;
  border-radius: 50%;
  border: 2rpx solid #fff;
}

.cc-user-name {
  font-size: 22rpx;
  color: #666;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.cc-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.cc-more-icon {
  width: 36px;
  height: 36px;
  background-color: #f3f4f6;
  border-radius: 8rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8rpx;

  text {
    font-size: 22rpx;
    color: #999;
  }
}

.cc-more-text {
  font-size: 22rpx;
  color: #999;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16rpx 24rpx;
  background: #fff;
  box-shadow: 0 -4rpx 12rpx rgba(0, 0, 0, 0.08);
  z-index: 999;

  .action-buttons {
    display: flex;
    gap: 30rpx;
  }

  .secondary-buttons {
    display: flex;
    gap: 16rpx;
  }

  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 88rpx;
    height: 88rpx;
    border-radius: 50%;
    font-size: 28rpx;
    color: #000;
    transition: all 0.2s ease;
    margin-bottom: 5rpx;

    &:active {
      transform: scale(0.95);
      opacity: 0.9;
    }

    &.more {
      transition: all 0.2s ease;
      position: absolute;
      right: 20rpx;
      color: #000;
    }
  }
}

.file-item {
  font-size: 28rpx;
  margin-bottom: 10rpx;
  display: flex;
  align-items: center;

  .file-icon {
    margin-right: 10rpx;
    font-size: 32rpx;
  }

  &::before {
    margin-right: 10rpx;
    font-size: 32rpx;
  }
}

.DocPicker-item {
  width: 90%;
  display: flex;
  align-items: center;
  padding: 15rpx;
  background-color: #f9f9f9;
  border-radius: 8rpx;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 20rpx;

  &:hover {
    background-color: #eef6ff; // 鼠标悬停时的背景色
  }

  .doc-icon {
    margin-right: 10rpx;
  }

  .doc-title {
    //font-size: 28rpx;
    color: #333;
  }

  .no-docs {
    font-size: 28rpx;
    color: #999;
    text-align: center;
    padding: 20rpx 0;
  }
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -5rpx;
}

.image-item {
  width: 30%;
  box-sizing: border-box;
  margin: 8rpx;
}

.plimage-item {
  width: 30%;
  box-sizing: border-box;
  border-radius: 10rpx;
}

.uploaded-image {
  width: 100%;
  height: 80px;
  background-color: #f5f5f5;
}

/* 表格容器样式 */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 10rpx 0;
}

/* 表头样式 */
.table-header {
  font-size: 30rpx;
  font-weight: bold;
  margin-bottom: 10rpx;
  padding-left: 20rpx;
}

/* 滚动容器样式 */
.scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 表格样式 */
table {
  border-collapse: collapse;
  table-layout: auto;
  /* 改为auto以适应内容 */
  width: 100%;
  min-width: 100%;
}

th {
  text-align: center;
  background-color: #e3e4e6;
  padding: 12rpx 16rpx;
  font-size: 26rpx;
  font-weight: bold;
  color: #333;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  white-space: nowrap;
  /* 保持表头不换行 */
  position: sticky;
  top: 0;
  z-index: 10;
}

/* 表头单元格样式 */
th.sticky-header {
  position: sticky;
  top: 0;
  /* 固定表头在顶部 */
  background-color: #e3e4e6;
  /* 背景色 */
  z-index: 2;
  /* 确保表头在内容上方 */
  text-align: left;
  padding: 8px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  font-size: 26rpx;
}

/* 表格内容单元格样式 */
td {
  text-align: center;
  padding: 8px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  font-size: 26rpx;
  white-space: nowrap;
  /* 防止文字换行 */
}

.comment {
  background-color: #409eff;
  /* 蓝色背景 */
  color: #fff;
  /* 白色文字 */
  border: none;
  /* 去掉边框 */
  font-size: 30rpx;
  /* 字体大小 */
  padding: 15rpx 0;
  /* 内边距 */
  border-radius: 50rpx;
  /* 圆角 */
  cursor: pointer;
  /* 鼠标悬停时显示手型 */
}

.ding-comment-modal {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 16rpx 16rpx 0 0;
  padding-bottom: env(safe-area-inset-bottom);

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24rpx 32rpx;
    border-bottom: 1rpx solid #f0f0f0;

    .header-title {
      font-size: 32rpx;
      font-weight: bold;
      color: #333;
    }

    .close-icon {
      font-size: 36rpx;
      color: #999;
      padding: 8rpx;
    }
  }

  .comment-input-area {
    padding: 20rpx 32rpx;
    max-height: 80vh;
    overflow-y: auto;

    .comment-textarea {
      width: 100%;
      min-height: 30vh;
      //max-height: 32vh;
      font-size: 28rpx;
      line-height: 1.6;
      color: #333;
    }

    .mentioned-users {
      display: flex;
      flex-wrap: wrap;
      margin-top: 10rpx;

      .mentioned-user {
        display: flex;
        align-items: center;
        background-color: #e6f7ff;
        border-radius: 8rpx;
        padding: 6rpx 12rpx;
        margin-right: 12rpx;
        margin-bottom: 12rpx;
        font-size: 24rpx;
        color: #1890ff;

        .remove-mention {
          margin-left: 8rpx;
          color: #999;
        }
      }
    }

    .upload-preview {
      margin-top: 20rpx;

      .preview-title {
        font-size: 28rpx;
        font-weight: 600;
        color: #333;
        margin-bottom: 16rpx;
      }

      .image-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10rpx;

        .image-item {
          position: relative;
          //width: calc(25% - 12rpx); // 4 items per row with gap
          height: 0;
          padding-bottom: 90rpx; // Square aspect ratio
          border-radius: 8rpx;
          overflow: hidden;
          background-color: #f5f5f5;

          .preview-image {
            width: 100%;
            height: 90rpx;
            border-radius: 10rpx;
            background-color: #f5f5f5;
          }

          .remove-btn {
            position: absolute;
            top: 4rpx;
            right: 4rpx;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            width: 36rpx;
            height: 36rpx;
            display: flex;
            align-items: center;
            justify-content: center;
          }
        }
      }

      .file-list {
        .file-item {
          display: flex;
          align-items: center;
          background-color: #f9f9f9;
          border-radius: 12rpx;
          padding: 16rpx;
          margin-bottom: 12rpx;
          position: relative;

          .file-icon-wrapper {
            margin-right: 16rpx;
          }

          .file-info {
            flex: 1;

            .file-name {
              font-size: 26rpx;
              color: #333;
              word-break: break-all;
            }

            .file-size {
              font-size: 22rpx;
              color: #999;
              margin-top: 4rpx;
            }
          }

          .remove-btn {
            margin-left: 16rpx;
          }
        }
      }
    }

    .toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 20rpx;
      padding-top: 20rpx;
      border-top: 1rpx solid #f0f0f0;

      .toolbar-left {
        position: relative;
        display: flex;

        .tool-item {
          width: 60rpx;
          height: 60rpx;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: 20rpx;
        }
      }

      .word-count {
        font-size: 24rpx;
        color: #999;
      }
    }
  }

  .send-btn-wrapper {
    padding: 20rpx 32rpx;

    .send-btn {
      width: 100%;
      height: 80rpx;
      line-height: 80rpx;
      text-align: center;
      background-color: #f5f5f5;
      color: #999;
      border-radius: 40rpx;
      font-size: 30rpx;

      &.active {
        background-color: #1890ff;
        color: #fff;
      }
    }
  }
}

.alt-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80rpx; // 和图片高度一致
  font-size: 24rpx;
  color: #999;
  background-color: #f5f5f5; // 背景色与占位图一致
  border-radius: 10rpx;
  text-align: center;
}

.Mainvalue {
  background-color: #f3f4f6;
  border-radius: 10rpx;
  padding-left: 20rpx;
  padding-bottom: 10rpx;
  margin-bottom: 10rpx;
}
